import hyRequest from '../request'
// import {post} from '../request'
//注册
export function regionserviceRego(data) {
    return hyRequest.post({
      url: "/api/login/dealerRego",
      params: data
    })
  }
  //登录
  export function regionserviceLogin(data) {
    return hyRequest.post({
      url: "/api/login/dealerLogin",
      data
    })
  }
  //获取区域服务商和登录用户信息
  export function getRegionservice(data) {
    return hyRequest.post({
      url: "/api/login/getDealer",
      data
    })
  }
  //修改资料
  export function dealerUpdate(data) {
    return hyRequest.post({
      url: "/api/dealer/dealerUpdate",
      data
    })
  }
  //重置密码
  export function resetPassword(data) {
    return hyRequest.post({
      url: "/api/login/resetPassword",
      data
    })
  }
  export function resetpwd(data) {
    return hyRequest.post({
      url: "/api/login/resetpwd",
      data
    })
  }
  export function sendNewCode(data) {
    return hyRequest.post({
      url: "/api/login/send",
      data
    })
  }
  //绑定openid
  export function getOpenid(data) {
    return hyRequest.post({
      url: "/api/login/getOpenid",
      data
    })
  }
  